package org.ami.onlineschool.dataAccess;

import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

public class RunningCoursesDataAccess extends AbstractDataAccess<List<String>>{

	private static final String RUNNING_COURSES_XML_FILE = "/runningCourses.xml";

	public RunningCoursesDataAccess(String dirPath) {
		super(dirPath, RUNNING_COURSES_XML_FILE);
	}

	@Override
	protected List<String> initializeTargetObject() {
		return new ArrayList<String>();
	}
	
	public List<String> getRunningCourses() {
		return getTargetObject();
	}

	public void saveRunningCoursesToDisk() throws FileNotFoundException {
		saveTargetObjectToDisk();
	}
	
}
